From 47fe08528d8d483aaef5e91f1a8646e066febf06 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 2 Aug 2017 16:59:09 +0100 Subject: [PATCH] eventbox: Remove --- docs/reference/gtk/drawing-model.xml | 75 ------ docs/reference/gtk/gtk4-sections.txt | 20 -- docs/reference/gtk/input-handling.xml | 8 - docs/reference/gtk/question_index.sgml | 5 - gtk/Makefile.am | 2 - gtk/gtk-autocleanups.h | 1 - gtk/gtk.h | 1 - gtk/gtkcombobox.c | 1 - gtk/gtkeventbox.c | 355 ------------------------- gtk/gtkeventbox.h | 86 ------ gtk/gtkplacesviewrow.c | 1 - gtk/gtkprintunixdialog.c | 1 - gtk/gtkrecentchooserdefault.c | 1 - gtk/makefile.msc.in | 2 - gtk/meson.build | 2 - 15 files changed, 561 deletions(-) delete mode 100644 gtk/gtkeventbox.c delete mode 100644 gtk/gtkeventbox.h diff --git a/docs/reference/gtk/drawing-model.xml b/docs/reference/gtk/drawing-model.xml index a6a52853fb..a608e75a09 100644 --- a/docs/reference/gtk/drawing-model.xml +++ b/docs/reference/gtk/drawing-model.xml @@ -342,81 +342,6 @@ my_widget_init (MyWidget *widget) - - App-paintable widgets - - - Generally, applications use the pre-defined widgets in GTK+ and - they do not draw extra things on top of them (the exception - being GtkDrawingArea). However, - applications may sometimes find it convenient to draw directly - on certain widgets like toplevel windows or event boxes. When - this is the case, GTK+ needs to be told not to overwrite your - drawing afterwards, when the window gets to drawing its default - contents. - - - - GtkWindow and - GtkEventBox are the two widgets that allow - turning off drawing of default contents by calling - gtk_widget_set_app_paintable(). If you call - this function, they will not draw their contents and let you do - it instead. - - - - Since the #GtkWidget::draw signal runs user-connected handlers - before the widget's default handler, what - usually happens is this: - - - - - - Your own draw handler gets run. It paints something - on the window or the event box. - - - - - - The widget's default draw handler gets run. If - gtk_widget_set_app_paintable() has not - been called to turn off widget drawing (this - is the default), your drawing will be - overwritten. An app paintable widget will not - draw its default contents however and preserve your drawing - instead. - - - - - - The draw handler for the parent class gets run. - Since both GtkWindow and - GtkEventBox are descendants of - GtkContainer, their no-window - children will be asked to draw themselves recursively, as - described in . - - - - - - Summary of app-paintable widgets - - - Call gtk_widget_set_app_paintable() if you - intend to draw your own content directly on a - GtkWindow and - GtkEventBox. You seldom need to draw - on top of other widgets, and - GtkDrawingArea ignores this flag, as it - is intended to be drawn on. - - -